package cn.interestingshop.service;

import cn.interestingshop.dao.goods.GoodsDao;
import cn.interestingshop.dao.goods.GoodsDaoImpl;
import cn.interestingshop.model.entity.Goods;

import java.util.List;

public class GoodsServiceImpl implements GoodsService {

    GoodsDao dao = new GoodsDaoImpl();

    @Override
    public List<Goods> findGoodByPage(int beginIndex, int showNum) {
        return dao.findGoodByPage(beginIndex, showNum);
    }
}